<?php

/*
 * core/config.php
 *
 * Core configurations
 *
 * Must define all configurations options in an array called '$config'.
 * site/config.php values overwrite these ones.
 */

$config = array();

/* *******************************************************************
 * general options
 * ******************************************************************* */

$config['output'] = array();

// output type (RAW or JSON)
$config['output']['type'] = 'JSON';

$config['debug'] = array();

// print extra debug information (used!)
$config['debug']['active'] = true;

/*
 * rpc
 */
$config['rpc'] = array();
$config['rpc']['debug'] = array();

// allow development of new services/methods without "update database" and "refresh rights"
$config['rpc']['debug']['right_check'] = true;

// add X seconds of sleep while loading
$config['rpc']['debug']['generated_latency'] = 0; // in second

/*
 * database options 
 */
$config['db'] = array();

$config['db']['type'] = 'mysql';
$config['db']['host'] = 'localhost';
$config['db']['port'] = null; // default
$config['db']['name'] = '';
$config['db']['user'] = '';
$config['db']['passwd'] = '';

/*
 * locale options
 */
$config['locale'] = array();

// IMPORTANT NOTES:
// - use the same language labelling system (as defined by standard, and how it's used in gwt), so it match the client side
// - default option is defined on the client in Constants and Messages definition themself !
$config['locale']['default'] = "en";

/*
 * special options
 */
$config['special'] = array();
$config['special']['username'] = array();
$config['special']['groupname'] = array();

// TODO: to check if it's used, and how!
$config['special']['username']['anonymous'] = 'anonymous';
$config['special']['username']['admin'] = 'admin';
$config['special']['groupname']['admin'] = 'admin';
$config['special']['groupname']['anonymous'] = 'anonymous';

?>
